var mongoose =require('mongoose');
var Schema = mongoose.Schema;

var GoodsSchema = new Schema({
    name: {type: String}, //名称
    description: {type: String}, //描述
    price: {type: Number, default: 0},
    count: {type: Number, default: 0},
    belongFaction: {type: Schema.Types.ObjectId, ref: 'Faction'},// 隶属圈子
    status: {type: String, default: 'off'}// 状态: on\off\del
})

mongoose.model('Goods', GoodsSchema);